package sd.czw.com.mmgapp.model.loginandsign;

import com.google.gson.Gson;
import com.zhy.http.okhttp.callback.Callback;

import okhttp3.Response;

/**
 * Created by czw
 * desc 描述：
 * on 2017/7/13.
 */
public abstract class LoginNormalCallback extends Callback<LoginNormalModel> {
    @Override
    public LoginNormalModel parseNetworkResponse(Response response, int id) throws Exception {
        String string = response.body().string();
        LoginNormalModel userInfo = new Gson().fromJson(string, LoginNormalModel.class);
        return userInfo;
    }
}
